const SERVICE_PREFIX: string = "/boot/";

const BOOT_AUTH: string = SERVICE_PREFIX + "auth";

const BOOT_SYSTEM: string = SERVICE_PREFIX + "system"

const BOOT_GEN: string = SERVICE_PREFIX + "gen"

export default class ApiConfig {
    static AUTH: any = {
        LOGIN: BOOT_AUTH + "/login",
        LOGOUT: BOOT_AUTH + "/logout",
        CAPTCHA: BOOT_AUTH + "/captcha",
        USER_INFO: BOOT_AUTH + "/user-info",
        TOKEN: BOOT_AUTH + "/oauth/token",
        ROUTER: BOOT_AUTH + "/router",
    };
    static SYSTEM: any = {
        MENU: BOOT_SYSTEM + "/menu",
        USER: BOOT_SYSTEM + "/user",
        ROLE: BOOT_SYSTEM + "/role",
        DEPT: BOOT_SYSTEM + "/dept",
        DICT: BOOT_SYSTEM + "/dict",
        FILE: BOOT_SYSTEM + "/file",
        PARAMS: BOOT_SYSTEM + "/params",
        USER_PAGE: BOOT_SYSTEM + "/user/page",
        USER_LIST: BOOT_SYSTEM + "/user/list",
        ROLE_PAGE: BOOT_SYSTEM + "/role/page",
        ROLE_LIST: BOOT_SYSTEM + "/role/list",
        ROLE_DROP_LIST: BOOT_SYSTEM + "/role/dropList",
        DEPT_LIST: BOOT_SYSTEM + "/dept/list",
        DEPT_TREE: BOOT_SYSTEM + "/dept/tree",
        DICT_LIST: BOOT_SYSTEM + "/dict/list",
        DICT_PAGE: BOOT_SYSTEM + "/dict/page",
        DICT_DROP_LIST: BOOT_SYSTEM + "/dict/dropList",
        DICT_STORE_LIST: BOOT_SYSTEM + "/dict/store/list",
        FILE_PAGE: BOOT_SYSTEM + "/file/page",
        FILE_LIST: BOOT_SYSTEM + "/file/list",
        FILE_UPLOAD: BOOT_SYSTEM + "/file/upload",
        MENU_LIST: BOOT_SYSTEM + "/menu/list",
        PARAMS_LIST: BOOT_SYSTEM + "/params/list",
        PARAMS_PAGE: BOOT_SYSTEM + "/params/page",
        ONLINE_USER_PAGE: BOOT_SYSTEM + "/onlineUser/page",
        LOGIN_INFO_LOG_PAGE: BOOT_SYSTEM + "/loginInfo/page",
        OPERATE_LOG: BOOT_SYSTEM + "/operateLog/page",
        GEN_PAGE: BOOT_GEN + "/sys/generator/page"
    };
}
